package hu.mapro.gwtui.client.data;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;

//@ExtraTypes(NamedSortFieldProxy.class)
public interface EntityRequestMethods<P> extends RequestContext {

	Request<Long> count();
	
	//Request<java.util.List<P>> list(int firstResult, int maxResults, List<SortFieldProxy> sort);

	Request<java.lang.Void> persist(P object);
	
	Request<java.lang.Void> remove(P object);
	
	Request<P> merge(P object);

	Request<java.util.List<P>> list();
	
}
